class Result {
  public code:number;
  public msg?: string | undefined | null;
  public data?:any;

  public setData({ code, msg = null, data = null }:any) {

    this.code = code;
    this.msg = msg ?? '测试';
    this.data = data;

    return this;
  }
}
export default new Result();
